import App from './App'



// #ifndef VUE3
import Vue from 'vue'

// 引入uview
import uView from "uview-ui"
Vue.use(uView)

// 工具
import tools from 'tools/tools.js'
Vue.prototype.$tools = tools

// API
import apis from 'configs/apis.js'
Vue.prototype.$apis = apis

// 请求
import request from 'configs/request.js'
Vue.prototype.$request = request
// 全局配置
import config from 'configs/config.js'
Vue.prototype.$config = config

// vuex定义成全局组件
import store from './store'
Vue.prototype.$store = store

// moment时间处理
Vue.prototype.$moment = require('moment')


// var VConsole = require('vconsole/dist/vconsole.min.js')
// let vConsole = new VConsole();
// export default vConsole
// const vconsole = require('vconsole')
// Vue.prototype.$vconsole = new vconsole() // 使用vconsole


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
    store
})
app.$mount()
// #endif



// #ifdef VUE3
import {
    createSSRApp
} from 'vue'
export function createApp() {
    const app = createSSRApp(App)
    return {
        app
    }
}
// #endif